package com.yyzw.activiti.modeler.dao;

import com.yyzw.activiti.modeler.model.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface MenuMapper extends Mapper<SysMenu> {
    @Select("select * from sys_menu where menu_id in (select menu_id from sys_role_menu where role_id =#{roleId})")
    List<SysMenu> getUserMenuByRoleId(@Param("roleId") int roleId);


}
